import getlink from "../../apis/getapi"
let Home = {
    state: {
        newarr1: ""
    },
    mutations: {
        upnavleft(state, payload) {
            state.newarr1 = payload
        }
    },
    actions: {
        getnavleft(context, payload) {
            getlink(payload.url).then((ok) => {
                //   console.log(ok);
                this.newarr1 = ok.data.navLeft;
                console.log(this.newarr1);
                context.commit("upnavleft", ok.data.navLeft)
            });
        }
    },
    getters: {

    }
}
export default Home